Revert "GtkNotebook: fix crash when DnD tabs between windows"
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 23:54:05 +0000 (18:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 Jan 2012 23:54:05 +0000 (18:54 -0500)
This reverts commit eeb9de80e17d1915d877c98eabd9a9a1f4423e9c.

gtk/gtknotebook.c

index 231893f74c04cd5744dcc9e8610f3280e48772c9..32cdee71ee714d783f7f3547f20384b56c679f85 100644 (file)
@@ -4958,10 +4958,7 @@ gtk_notebook_real_remove (GtkNotebook *notebook,
   gtk_widget_unparent (page->child);
 
   tab_label = page->tab_label;
-  /* Do not unparent the tab label if it's already in another
-     hierarchy. It means we are in the middle of a DnD and it's
-     already taken care of. */
-  if (tab_label && NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, page))
+  if (tab_label)
     {
       g_object_ref (tab_label);
       gtk_notebook_remove_tab_label (notebook, page);